public class Tesk4 {
	public static void main(String[]args){
		int[] array=new int[]{1,3,-1,5,-2};
		int[] newArray=new int[5];
		for(int i=array.length-1;i>=0;i--){
			if(array[i]<=0){
				newArray[i]=0;
			}else{
				newArray[i]=array[i];
			}
			System.out.println(newArray[i]);
		}
	}
}
